﻿@model PagedResult<notice_dto>
@{
    if (Model.rows.Count > 0) {
        foreach (var item in Model.rows) {
            <li>
                <a href="/Notic/Detail/?Id=@item.id">
                    <div class="tit fn30 fn-bold">
                        @item.title
                    </div>
                    <p class="text fn28">
                        @(item.content.Length > 50 ? item.content.Substring(0, 50) : item.content)
                    </p>
                    <div class="bottom col-gray">
                        <span>
                            @item.create_time.ToString("yyyy-MM-dd HH:mm")
                        </span>
                        <span class="fn-right fn30 col-blue">
                            @(item.isRead==true ? "已读" : "未读")
                        </span>
                    </div>
                </a>
            </li>
        }
    }
    <page rows="@Model.rows.Count()" total_result="@Model.total_result"></page>
}
